package com.dataseek.iot.mysql.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author cc
 * @since 2021-09-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "类别")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @TableId(value = "inner_category_id", type = IdType.AUTO)
    private Long innerCategoryId;

    /**
     * 分类编码
     */
    @ApiModelProperty(value = "分类编码",required = false)
    private String categoryCode;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称",required = false)
    private String categoryName;

    /**
     * 所属领域
     */
    @ApiModelProperty(value = "所属领域",required = false)
    private String field;

    /**
     * 父级编码
     */
    @ApiModelProperty(value = "父级编码",required = false)
    private String parentId;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     * 更新时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;


}
